<?php

    /**
     * Factory
     *
     * @package      Core
     * @subpackage   Soap
     *
     * @static
     *
     * @license      GNU Lesser General Public Licence see LICENCE-LGPL file or http://www.gnu.org/licenses/lgpl.html
     */
	class Core_Soap
	{

	////////////////////////////////////////////////////////////////////////////
    //                             Static Methods                             //
    ////////////////////////////////////////////////////////////////////////////

        /**
         * Constructor
         *
         * @param       string      $adapter
         * @return      Core_Soap_Adapter_Abstract
         */
        public static function factory($adapter = 'Soapclient')
        {
            $classname = 'Core_Soap_Adapter_'. ucfirst(strtolower($adapter));
            return new $classname();
        }
	}
